/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kwic;

import java.util.Iterator;
import java.util.List;

/**
 *
 * @author Tom
 */
public class Output {
 private Alphabetizer alphabetizer;

    public Output(Alphabetizer alphabetizer) {
        this.alphabetizer = alphabetizer;
    }
 public void print(){
       System.out.println("Output SEQUENCE");
       List<String> lines=alphabetizer.getSorted();
        Iterator it = lines.iterator();
        while (it.hasNext()) {
            System.out.println(it.next());
        }
 }
         
}
